package com.getui.demo;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.TextView;

/**
 * 作者： njb
 * 时间： 2019/1/14 14:27
 * 描述：
 * 来源：
 */
public class MessageInfoActivity extends Activity {
    private String title,content;
    private TextView tvTitle,tvContent;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_message_info);
        initView();
        init();
    }

    private void initView() {
        tvTitle= findViewById(R.id.tv_title);
        tvContent = findViewById(R.id.tv_content);
    }

    private void init() {
        if(getIntent() != null && getIntent().getExtras()!= null){
            title = getIntent().getExtras().getString("title");
            content = getIntent().getExtras().getString("content");
            tvTitle.setText(title);
            tvContent.setText(content);
        }
    }
}
